package com.ruoyi.project.para.paeaParaTxnCde.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.para.paeaParaTxnCde.mapper.PaeaParaTxnCdeMapper;
import com.ruoyi.project.para.paeaParaTxnCde.domain.PaeaParaTxnCde;
import com.ruoyi.project.para.paeaParaTxnCde.service.IPaeaParaTxnCdeService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 交易码查询Service业务层处理
 *
 * @author gang.wei
 * @date 2020-03-27
 */
@Service
public class PaeaParaTxnCdeServiceImpl extends ServiceImpl<PaeaParaTxnCdeMapper, PaeaParaTxnCde> implements IPaeaParaTxnCdeService
{
    @Autowired
    private PaeaParaTxnCdeMapper paeaParaTxnCdeMapper;

    /**
     * 查询交易码查询
     *
     * @param id 交易码查询ID
     * @return 交易码查询
     */
    @Override
    public PaeaParaTxnCde selectPaeaParaTxnCdeById(String id)
    {
        return paeaParaTxnCdeMapper.selectPaeaParaTxnCdeById(id);
    }

    /**
     * 查询交易码查询列表
     *
     * @param paeaParaTxnCde 交易码查询
     * @return 交易码查询
     */
    @Override
    public List<PaeaParaTxnCde> selectPaeaParaTxnCdeList(PaeaParaTxnCde paeaParaTxnCde)
    {
        return paeaParaTxnCdeMapper.selectPaeaParaTxnCdeList(paeaParaTxnCde);
    }

    /**
     * 新增交易码查询
     *
     * @param paeaParaTxnCde 交易码查询
     * @return 结果
     */
    @Override
    public int insertPaeaParaTxnCde(PaeaParaTxnCde paeaParaTxnCde)
    {
        return paeaParaTxnCdeMapper.insertPaeaParaTxnCde(paeaParaTxnCde);
    }

    /**
     * 修改交易码查询
     *
     * @param paeaParaTxnCde 交易码查询
     * @return 结果
     */
    @Override
    public int updatePaeaParaTxnCde(PaeaParaTxnCde paeaParaTxnCde)
    {
        return paeaParaTxnCdeMapper.updatePaeaParaTxnCde(paeaParaTxnCde);
    }

    /**
     * 删除交易码查询对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaTxnCdeByIds(String ids)
    {
        return paeaParaTxnCdeMapper.deletePaeaParaTxnCdeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除交易码查询信息
     *
     * @param id 交易码查询ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaTxnCdeById(String id)
    {
        return paeaParaTxnCdeMapper.deletePaeaParaTxnCdeById(id);
    }
}
